package com.it.zhangjun.design.pattern.decorator;

/**
 * @className: BagDecorator
 * @description: 装饰器类
 * @author: z00018123
 * @date: 2021/4/30
 **/
public class BagDecorator implements Bag {

    private Bag bag;

    public BagDecorator(Bag bag) {
        this.bag = bag;
    }

    @Override
    public void pack() {
        this.bag.pack();
    }
}
